package psn.kiko.context;

/**
 * 用户上下文，用于存储登录用户ID
 */
public class UserContext {
	private static final ThreadLocal<Integer> USER_CONTEXT=new ThreadLocal<>();
	public  static Integer getUserId(){
		return USER_CONTEXT.get();
	}
	public static void setUserId(Integer userId){
		USER_CONTEXT.set(userId);
	}
}
